package com.fbli.service;

import com.fbli.pojo.Products;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductsService {
    List<Products> selectAll();
    //分页
    PageInfo<Products> selectPage(int pageNum, int pageSize);
    List selectCategory();
    List selectBrand();
    List selectFunction();
    //条件查询并分页
    PageInfo<Products> selectCondition(Products product,int pageNum, int pageSize);


    void deleteById(long[] ids);

    void update(Products products);

    Products selectById(int productId);

    void insert(Products products);
}
